import { post } from '@/utils/request';

//趋势图
export async function queryBarStat(params: any) {
  return post('/aitype/caseInfo/queryBarStat', params);
}
export async function queryThemeBarStat(params: any) {
  return post('/aitype/caseInfo/queryThemeBarStat', params);
}
export async function queryAyConfigStat(params: any) {
  return post('/aitype/caseInfo/queryAyConfigStat', params);
}
//人员分析
export async function groupStat(params: any) {
  return post('/aitype/persona/groupStat', params);
}
//报警时段分析
export async function timeStat(params: any) {
  return post('/aitype/persona/timeStat', params);
}
//串并新发警情提示
export async function queryFeatureLatest() {
  return post('/series/stat/queryFeatureLatest');
}
//设置统计修改
export async function updateAiTypeCallAy(params: any) {
  return post('/console/theme/updateAiTypeCallAy', params);
}
//警情热词
export async function queryHotWord(params: any) {
  return post('/aitype/caseInfo/queryHotWord', params);
}
export async function updateAiTypeDealAy(params: any) {
  return post('/console/theme/updateAiTypeDealAy', params);
}
export async function queryAiTypeAy(params: any) {
  return post('/console/theme/queryAiTypeAy', params);
}

//报告导出
// export async function getExportWord(params: { title: string }) {
//   return request({
//     method: 'post',
//     url: '/aitype/caseInfo/exportWord',
//     params,
//     headers: {
//       'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
//     },
//   });
// }

export async function getExportWord(params: { title: string }) {
  return post('/aitype/caseInfo/exportWord', params);
}

//存储图片
export async function getUploadImage(params: { title: string; image: string }) {
  return post('/aitype/caseInfo/uploadImage', params);
}
